package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Attendshiftowner;

public abstract class BaseAttendshiftowner implements Serializable {

	public BaseAttendshiftowner() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseAttendshiftowner(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseAttendshiftowner(String id, String attsoEmpNo) {
		hashCode = 0x80000000;
		setId(id);
		setAttsoEmpNo(attsoEmpNo);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getAttsoEmpNo() {
		return attsoEmpNo;
	}

	public void setAttsoEmpNo(String attsoEmpNo) {
		this.attsoEmpNo = attsoEmpNo;
	}

	public String getAttsoDeptId() {
		return attsoDeptId;
	}

	public void setAttsoDeptId(String attsoDeptId) {
		this.attsoDeptId = attsoDeptId;
	}

	public String getAttsoBuId() {
		return attsoBuId;
	}

	public void setAttsoBuId(String attsoBuId) {
		this.attsoBuId = attsoBuId;
	}

	public String getAttsoLocId() {
		return attsoLocId;
	}

	public void setAttsoLocId(String attsoLocId) {
		this.attsoLocId = attsoLocId;
	}

	public String getAttsoGroupId() {
		return attsoGroupId;
	}

	public void setAttsoGroupId(String attsoGroupId) {
		this.attsoGroupId = attsoGroupId;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Attendshiftowner))
			return false;
		Attendshiftowner attendshiftowner = (Attendshiftowner) obj;
		if (null == getId() || null == attendshiftowner.getId())
			return false;
		else
			return getId().equals(attendshiftowner.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Attendshiftowner";
	public static String PROP_ATTSO_GROUP_ID = "attsoGroupId";
	public static String PROP_ATTSO_DEPT_ID = "attsoDeptId";
	public static String PROP_ATTSO_BU_ID = "attsoBuId";
	public static String PROP_ATTSO_EMP_NO = "attsoEmpNo";
	public static String PROP_ATTSO_LOC_ID = "attsoLocId";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String attsoEmpNo;
	private String attsoDeptId;
	private String attsoBuId;
	private String attsoLocId;
	private String attsoGroupId;

}
